package com.dayatang.hrm.compensation.vo;

import javax.persistence.Column;
import javax.persistence.Embeddable;

import com.dayatang.commons.domain.ValueObject;

/**
 * 会计期间范围设置
 * 
 * @author chencao
 * 
 */
@Embeddable
public class FiscalPeriodRangeSetting implements ValueObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2725216788296920304L;

	public static FiscalPeriodRangeSetting PRESENT_FISCAL_PERIOD_SETTING = new FiscalPeriodRangeSetting(
			FiscalPeriodRangeType.PRESENT_FISCAL_PERIOD);

	// 会计期间取值范围类型
	@Column(name = "fiscal_period_range_type")
	private FiscalPeriodRangeType fiscalPeriodRangeType;

	// 设置起始点
	@Column(name = "from_number")
	private Integer from;

	// 设置结束点
	@Column(name = "to_number")
	private Integer to;

	public FiscalPeriodRangeSetting() {
	}

	public FiscalPeriodRangeSetting(FiscalPeriodRangeType fiscalPeriodRangeType) {
		this.fiscalPeriodRangeType = fiscalPeriodRangeType;
	}

	public FiscalPeriodRangeType getFiscalPeriodRangeType() {
		return fiscalPeriodRangeType;
	}

	public void setFiscalPeriodRangeType(
			FiscalPeriodRangeType fiscalPeriodRangeType) {
		this.fiscalPeriodRangeType = fiscalPeriodRangeType;
	}

	public Integer getFrom() {
		return from;
	}

	public void setFrom(Integer from) {
		this.from = from;
	}

	public Integer getTo() {
		return to;
	}

	public void setTo(Integer to) {
		this.to = to;
	}

}
